---
description: "Reference for Nitric's Python library - Get a value from a key value store."
---

# Python - kv.get()

<Note>
  This is reference documentation for the Nitric Python SDK. To learn about
  Key/Value Stores in Nitric start with the [Key/Value Store docs](/keyvalue).
</Note>

Get a value from a key value store.

```python
from nitric.resources import kv
from nitric.application import Nitric

profiles = kv('profiles').allow('get')

profile = await profiles.get('profile-1a2b3c')

Nitric.run()
```

## Parameters

<Properties>
  <Property name="key" required type="string">
    The key that references the key value pair that should be retrieved.
  </Property>
</Properties>

## Examples

### Get a key value pair

```python
from nitric.resources import kv
from nitric.application import Nitric

profiles = kv('profiles').allow('get')

profile = await profiles.get('profile-1a2b3c')

Nitric.run()
```
